package com.yager.service;

import com.github.pagehelper.PageInfo;
import com.yager.model.House;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface HouseService {

    public List<House> selectHouseByConditions(String housetype, String houseaddress, boolean sortage, boolean sortprice);

    public House selectHouseByPrimaryKey(String houseid);

    public void insertHouse(MultipartFile[] multipartFile, House house);

    public void deleteHouse(String houseid);

    public void updateHouse(House house);

    public PageInfo<House> selectHouseByText(String housetext, Integer pageNo);

    public List<House> selectHouseByTextAndConditions(String housetext, String housetype, String houseaddress, int sortage, int sortprice);

    public PageInfo<House> selectHouseOrderById(Integer pageNo);

    public PageInfo<House> selectHouseByUserId(String userid, Integer pageNo);

    public String getHouseNameById(String houseid);
}
